package com.wn.ziroom.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
@Data
public class RoomVoo {

    /**
     * 主键
     */
    private Integer id;

    private String qname;

    /**
     * 租金
     */
    private Double rent;

    /**
     * 业主ID
     */
    private Integer ownerId;

    /**
     * 租客ID
     */
    private Integer userId;



    /**
     * 房子图片
     */
    private String img;

    /**
     * 房型
     */
    private String type;



    /**
     * 签约开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date startTime;

    /**
     * 签约结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date endTime;

    private int build;

    private String roomtype;

    private String number;

    private int quartersId;

    private Double area;

}
